a=input('please input a number:')

a=int(a)

if a<=999 and a>=100:

    x=int(a%10)
    y=int((a%100)//10)
    z=int(a//100)

    k=100*x+10*y+z

    print(k)
else:
    print('error')




